import Vue from 'vue'
import Router from 'vue-router'
import Header from '@/components/header'
import Footer from '@/components/footer'
import Home from '@/components/home'
import GuwenList from '@/components/guwenList'
import ShoukeList from '@/components/shoukeList'
import GuwenDetail from '@/components/guwenDetail'
import TushuList from '@/components/tushuList'
import TushuLists from '@/components/pindaoye/tushuList'
import TushuDetail from '@/components/tushuDetail'
import ZhifuSuccess from '@/components/zhifuSuccess'
import QuerenBuy from '@/components/querenBuy'
import XuankeList from '@/components/xuankeList'
import XuankeLists from '@/components/pindaoye/xuankeList'
import XuankeDetail from '@/components/xuankeDetail'
import ZixunList from '@/components/zixunList'
import ZixunDetail from '@/components/zixunDetail'
import ZixunLists from '@/components/pindaoye/zixunList'
import ZixunDetails from '@/components/pindaoye/zixunDetail'
import Callus from '@/components/callus'
import asideCon from '@/components/asideCon'
import GaoxiaoList from '@/components/gaoxiao/gaoxiaoList'
import GaoxiaoDetail from '@/components/gaoxiao/gaoxiaoDetail'
import GaoxiaoMdetail from '@/components/gaoxiao/gaoxiaoMdetail'
import Gaoxiaoditu from '@/components/gaoxiao/gaoxiaoditu'
import gaoxiaoList_detail from '@/components/gaoxiao/gaoxiaoList_detail'
import PayGateWay from '@/components/payGateWay'
import Main from '@/components/personal/main'
import Car from '@/components/personal/car'
import Order from '@/components/personal/order'
import OrderDetail from '@/components/personal/orderDetail'
import OrderWuliu from '@/components/personal/orderWuliu'
import MyKecheng from '@/components/personal/myKecheng'
import KeList from '@/components/personal/keList'
import EditMsg from '@/components/personal/editMsg'
import account from '@/components/personal/account'
import tiku from '@/components/personal/tiku'
import dayi from '@/components/personal/dayi'
import homework from '@/components/personal/homework'
// 频道页 
import channel from '@/components/pindaoye/channel'
import channel_book from '@/components/pindaoye/channel_book'
import artrecommentdation_data from '@/components/pindaoye/artrecommentdation_data'
import artrecommentdation_dataDetail from '@/components/pindaoye/artrecommentdation_dataDetail'
import pFree from '@/components/pindaoye/pindao_free'
Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [{
      path: '/',
      redirect: {
        name: 'home'
      }
    },
    {
      path: '/header',
      name: 'header',
      component: Header
    },
    {
      path: '/footer',
      name: 'footer',
      component: Footer
    },
    {
      path: '/',
      name: 'home',
      component: Home,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/guwenList',
      name: 'guwenList',
      component: GuwenList,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/shoukeList',
      name: 'shoukeList',
      component: ShoukeList,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/guwenDetail',
      name: 'guwenDetail',
      component: GuwenDetail
    },
    {
      path: '/tushuList',
      name: 'tushuList',
      component: TushuList,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/tushuLists',
      name: 'tushuLists',
      component: TushuLists,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/tushuDetail',
      name: 'tushuDetail',
      component: TushuDetail
    },
    {
      path: '/zhifuSuccess',
      name: 'zhifuSuccess',
      component: ZhifuSuccess
    },
    {
      path: '/querenBuy',
      name: 'querenBuy',
      component: QuerenBuy
    },
    {
      path: '/xuankeList',
      name: 'xuankeList',
      component: XuankeList,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/xuankeLists',
      name: 'xuankeLists',
      component: XuankeLists,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/xuankeDetail',
      name: 'xuankeDetail',
      component: XuankeDetail
    },
    {
      path: '/zixunList',
      name: 'zixunList',
      component: ZixunList,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/zixunLists',
      name: 'zixunLists',
      component: ZixunLists,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/zixunDetail',
      name: 'zixunDetail',
      component: ZixunDetail
    },
    {
      path: '/zixunDetails',
      name: 'zixunDetails',
      component: ZixunDetails
    },
    {
      path: '/zixunDetails',
      name: 'zixunDetails',
      component: ZixunDetails
    },
    {
      path: '/callus',
      name: 'callus',
      component: Callus
    },
    {
      path: '/gaoxiaoList',
      name: 'gaoxiaoList',
      component: GaoxiaoList,
      // meta: {
      //   keepAlive: true
      // }
    },
    {
      path: '/gaoxiaoDetail',
      name: 'gaoxiaoDetail',
      component: GaoxiaoDetail
    },
    {
      path: '/gaoxiaoMdetail',
      name: 'gaoxiaoMdetail',
      component: GaoxiaoMdetail
    },
    {
      path: '/gaoxiaoList_detail',
      name: 'gaoxiaoList_detail',
      component: gaoxiaoList_detail
    },
    {
      path: '/gaoxiaoditu',
      name: 'gaoxiaoditu',
      component: Gaoxiaoditu
    },
    {
      path: '/payGateWay',
      name: 'payGateWay',
      component: PayGateWay
    },
    {
      path: '/main',
      name: 'main',
      redirect: "/main/order",
      component: Main,
      children: [{
          path: 'car',
          name: 'car',
          component: Car
        },
        {
          path: 'order',
          name: 'order',
          component: Order
        },
        {
          path: 'orderDetail',
          name: 'orderDetail',
          component: OrderDetail
        },
        {
          path: 'orderWuliu',
          name: 'orderWuliu',
          component: OrderWuliu
        },
        {
          path: 'myKecheng',
          name: 'myKecheng',
          component: MyKecheng
        },
        {
          path: 'editMsg',
          name: 'editMsg',
          component: EditMsg
        },
        {
          path: 'account',
          name: 'account',
          component: account
        },
        {
          path: 'dayi',
          name: 'dayi',
          component: dayi
        },{
          path: 'homework',
          name: 'homework',
          component: homework
        },
        {
          path: 'tiku',
          name: 'tiku',
          component: tiku
        }
      ]
    },
    {
      path: '/keList',
      name: 'keList',
      component: KeList
    },
    {
      path: '/asideCon/:title',
      name: 'asideCon',
      component: asideCon
    },
    // 频道页
    {
      path: '/channel',
      name: 'channel',
      component: channel
    },
    // 频道页艺考图书 
    {
      path: '/channel_book',
      name: 'channel_book',
      component: channel_book
    },
    {
      path: '/artrecommentdation_data',
      name: 'artrecommentdation_data',
      component: artrecommentdation_data
    },
    {
      path: '/artrecommentdation_dataDetail',
      name: 'artrecommentdation_dataDetail',
      component: artrecommentdation_dataDetail
    },
    {
      path: '/pFree',
      name: 'pFree',
      component: pFree
    },
  ]
})
